package com.splic.common.enums;

/**
 * Created by IntelliJ IDEA.
 * User: Singe
 * Date: 2017-12-25
 * Time: 17:55
 * To change this template use File | Settings | File Templates.
 */
public enum ErrorEnum {
    RESULT_ERROR("-1", "系统错误"),
    RESULT_SUCCESS("0", "成功"),
    RESULT_PARAMERROR("1001", "参数异常"),
    RESULT_NEWEST("1002", "已经是最新版本!"),
    RESULT_NOT_FOUNT("1003", "未找到相应信息!"),
    RESULT_CODE_ERROR("1004", "验证码错误!"),


    RESULT_ACTIVITY_ERROR("2001", "当前活动不存在,请点击同步按钮同步当前活动信息!"),
    RESULT_ACTIVITY_OVERDUE_ERROR("2002", "当前活动已过期!"),
    RESULT_ACTIVITY_DELETE_ERROR("2003", "当前活动不存在或者已经删除!"),

    RESULT_LOGIN_ERROR("4001", "用户未登录!"),
    RESULT_LOGIN_ERROR2("4002", "用户不存在!"),
    RESULT_LOGIN_ERROR3("4003", "用户名或密码不正确!"),
    RESULT_LOGIN_ERROR4("4004", "用户名或密码不能为空!"),
    RESULT_LOGIN_ERROR5("4005", "用户名已存在!"),

    RESULT_VERSION_MSG("5001", "客户端已经是最新版本!"),
    RESULT_INVITATION_NOT_FOUND_MSG("5002", "暂无邀请码!"),
    RESULT_ID_CARD_NOT_FOUND_MSG("5003", "暂无身份证!"),

    RESULT_NO_NOTICE("6001", "暂无公告!");

    private String code;
    private String msg;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    ErrorEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
